<?php
        

$config = array(
	'userinfo' => array(
		array(
			'field' => 'email',
			'label' => '邮箱',
			'rules' => 'required|valid_email'
		),
        array(
            'field' => 'password',
            'label' => '密码',
            'rules' => 'required|min_length[6]'
        ),
        array(
            'field' => 'password2',
            'label' => '密码',
            'rules' => 'required|min_length[6]'
        )
    ),
	'login' => array(
		array(
			'field' => 'email',
			'label' => '邮箱',
			'rules' => 'required|valid_email'
		),
		array(
			'field' => 'password',
			'label' => '密码',
			'rules' => 'required'
		),
		array(
			'field' => 'remember_me',
			'label' => '记住我',
			'rules' => 'integer'
		)
	),
	'address' => array(
		array(
			'field' => 'ip',
			'label' => 'ip',
			'rules' => 'required|valid_ip'
		),
		array(
			'field' => 'port',
			'label' => '端口',
			'rules' => 'required|integer'
		)
	),
	'change_password' => array(
		array(
			'field' => 'old_password',
			'label' => '原密码',
			'rules' => 'required|min_length[6]|max_length[16]'
		),
		array(
			'field' => 'new_password',
			'label' => '新密码',
			'rules' => 'required|min_length[6]|max_length[16]'
		),
		array(
			'field' => 'new_password2',
			'label' => '确认密码',
			'rules' => 'required|min_length[6]|max_length[16]'
		)
	)
);